home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
Macintosh Programmer’s Workshop
/
MPW 3.1
/
MPW
/
Interfaces
/
CIncludes
/
IOCtl.h
< prev
next >
Wrap
Text File
|
1990-12-13
|
1KB
|
56 lines
/*
IOCtl.h -- Device-handler-specific requests
Copyright, Apple Computer Inc. 1985-1988
All rights reserved.
*/
# ifndef __IOCTL__
# define __IOCTL__
/*
* IO Control commands.
*
* IOCTLs which begin with "FIO" are controls which are general
* control requests. They may be executed by the top-level
* ioctl() procedure, or previewed by it before passing it on
* to the driver xxIoctl()s.
*
* FIOLSEEK and FIODUPFD are for internal use only.
*/
# define FIOLSEEK (('f'<<8)|00) /* 3rd arg is a _SeekType (below) */
# define FIODUPFD (('f'<<8)|01) /* 3rd arg is min new fd number */
# define FIOINTERACTIVE (('f'<<8)|02) /* If device is interactive */
# define FIOBUFSIZE (('f'<<8)|03) /* Return optimal buffer size */
# define FIOFNAME (('f'<<8)|04) /* Return filename */
# define FIOREFNUM (('f'<<8)|05) /* Return fs refnum */
# define FIOSETEOF (('f'<<8)|06) /* Set file length */
/*
* Implementation of lseek() uses this as its 3rd argument.
*/
typedef struct {
int posMode;
long posOff;
} _SeekType;
/*
* TTY stuff.
*/
# define TIOFLUSH (('t'<<8)|00)
# define TIOSPORT (('t'<<8)|01)
# define TIOGPORT (('t'<<8)|02)
#ifdef __safe_link
extern "C" {
#endif
int ioctl(int, unsigned int, long*);
#ifdef __safe_link
}
#endif
# endif __IOCTL__